<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
</head>
<body>
欢迎

<h1>get请求方式</h1>
<form action="rt" method="get">
    用户 <input type="text" name="username" placeholder="请输入用户名"> <br>
    密码 <input type="password" name="password" placeholder="请输入密码"> <br>
    性别 <input type="radio" name="sex" value="male"> 男
    <input type="radio" name="sex" value="female"> 女
    <br>
    爱好
    <input type="checkbox" name="hobby" value="smoke"> aa
    <input type="checkbox" name="hobby" value="drink"> bb
    <input type="checkbox" name="hobby" value="firehead"> cc
    <br>
    <input type="submit">
</form>

<h1>post请求方式</h1>
<form action="rt" method="post">
    用户 <input type="text" name="username" placeholder="请输入用户名"> <br>
    密码 <input type="password" name="password" placeholder="请输入密码"> <br>
    性别 <input type="radio" name="sex" value="male"> 男
    <input type="radio" name="sex" value="female"> 女
    <br>
    爱好
    <input type="checkbox" name="hobby" value="smoke"> aa
    <input type="checkbox" name="hobby" value="drink"> bb
    <input type="checkbox" name="hobby" value="firehead"> cc
    <br>
    <input type="submit">
</form>
</body>
</html>